<?php

namespace Hilaoyu\LaravelExtend\Services\Auth;

use Hilaoyu\LaravelExtend\Model;

abstract class AbstractModelAuthUsersLoginLog extends Model
{

    protected $table = 'auth_users_login_log';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'token_id' ,
        'user_id' ,
        'app_id' ,
        'user_model' ,
        'login_platform' ,
        'login_source' ,
        'login_ip' ,
        'referer' ,
    ];

    protected $hidden = [
        'user_model',
    ];

    public function getValidationRules()
    {
        $rules = [
            'user_id' => 'required|uuid',
            'user_model' => 'required|string',
        ];

        return $rules;
    }




}
